﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Age.Qna.Site.Mvc.Models
{
  public class QnaEntity
  {
    public Guid QnaSessionCode { get; set; }
    public QuestionEntity QuestionData { get; set; }
    public IList<AnswerEntity> AnswerChoices { get; set; }
    public UserDataEntity UserData { get; set; }
    public String Error { get; set; }
  }

  public class AnswerEntity
  {
    public Int64 AnswerID { get; set; }
    public Int64 QuestionID { get; set; }
    public String Answer { get; set; }
    public Boolean IsCorrect { get; set; }
    public String AnswerExplanation { get; set; }
    public Boolean IsActive { get; set; }
    public Int32 OrderIndex { get; set; }
  }

  public class CategoryEntity
  {
    public String Category { get; set; }
    public Int32 CategoryID { get; set; }
    public String Description { get; set; }
    public Int32 ParentID { get; set; }
    public String Error { get; set; }
  }

  public class QuestionEntity
  {
    public Int64 QuestionID { get; set; }
    public List<Int32> CategoryID { get; set; }
    public Int16 DifficultyLevel { get; set; }
    public Int32 AccountID { get; set; }
    public String Question { get; set; }
    public Boolean IsActive { get; set; }
    public String FlagCode { get; set; }
    public Int32 GivenTime { get; set; }
    public Int32 UserID { get; set; }
    public Int64 AppLogID { get; set; }
  }

  public class UserDataEntity
  {
    public Int32 UserID { get; set; }
    public String UserName { get; set; }
    public String UserEmail { get; set; }
    public Int32 AccountID { get; set; }
    public String DeviceType { get; set; }
    public String DeviceDescription { get; set; }
    public String OtherInfo { get; set; }
  }
}